<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            width: 500px;
            border: 1px red solid;
            /* 
                text-align文本水平对齐
                可选值：
                    left 左侧对齐
                    right 右侧对齐
                    center 居中对齐
                    justify 两端对齐
            */
            text-align: justify;
        }

        .box2{
            width: 700px;
            font-size: 50px;
            border: seagreen solid 2px;
        }
        .s1{
            font-size: 30px;
            border: slateblue solid 2px;
            /* 
                vertical-align设置垂直对齐
                可选值：
                baseline 默认值基线对齐
                top 顶部对齐
                bottom 底部对齐
                middle居中对齐

            */

            vertical-align: bottom;
            
        }

        img{
            border: teal solid 2px;
            vertical-align: bottom;
        }



    </style>
</head>
<body>
    <div class="box1">Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum dicta, nesciunt molestias voluptate minus repudiandae eum. Odio asperiores doloremque, voluptatibus sunt alias velit explicabo cum, rem deserunt provident, eaque recusandae?</div>
    <div class="box2">哈哈dddddd哈哈<span class="s1">嘻嘻嘻</span>哈哈哈</div>
    <p>
        <img src="../img/01.jpg" alt="">
    </p>
</body>
</html>